#include <iostream>
#include <str.hpp>
#include <vector>

int main() {
    std::string str, delim, newstr;
    std::vector<std::string> strvec = {
        " 1 2 3",
        " 1 2 3",
        ",,,,,,1, 2, 3",
        "abcabc1abc2abcabc3abc",
        "bc1abc2abc3",
    };
    std::vector<std::string> delimvec = {
        "",
        " ",
        ",",
        "abc",
        "abc",
    };

    for (int i = 0; i < strvec.size(); i++) {
        newstr = trimLeadingDelimiters(strvec[i], delimvec[i]);
        std::cout << "After triming [" << strvec[i] << "] with delimiter [" << delimvec[i];
        std::cout << "] is [" << newstr << "]." << std::endl;
    }

    return 0;
}
